/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aeronef.util;

/**
 *
 * @author Hagan
 */
public class MathUtil {
    
    public static boolean chance(Double chance) {
        double random = Math.random();
        if(random <= chance) {
            return true;
        }
        return false;
    }
    
    public static double vary(Double chance) {
        //will vary a value by a random amount within the percentage specified.
        return 1;
    }
}
